package com.pet.platform.mapper;

import com.pet.platform.entity.Pet;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

@Mapper
public interface PetMapper {
    Pet findById(@Param("id") Long id);
    
    List<Pet> findList(Map<String, Object> params);
    
    Long count(Map<String, Object> params);
    
    void insert(Pet pet);
    
    void update(Pet pet);
    
    void delete(@Param("id") Long id);
    
    void updateAdoptionStatus(@Param("id") Long id, @Param("adoptionStatus") String adoptionStatus);
    
    List<Pet> findByOwnerId(@Param("ownerId") Long ownerId);
} 